package com.wxq.koland.xiaoliscan.network;

/**
 * Created by wxq on 2019/2/14.
 * Love Life ~
 */

public class NetSubscribe {


//
//    public static void getLogin(String number, String pwd, DisposableObserver<NormalBean> subscriber){
//        String afterencrypt = "";
//        try
//        {
//            // 从字符串中得到公钥
//            PublicKey publicKey = RSAUtils.loadPublicKey(Config.PUCLIC_KEY);
//            // 从文件中得到公钥
////                    InputStream inPublic = getResources().getAssets().open("rsa_public_key.pem");
////                    PublicKey publicKey = RSAUtils.loadPublicKey(inPublic);
//            // 加密
//            byte[] encryptByte = RSAUtils.encryptData(pwd.getBytes(), publicKey);
//            afterencrypt = new String(encryptByte);
//            Logger.e("rsa","密文："+ afterencrypt);
//        } catch (Exception e)
//        {
//            e.printStackTrace();
//        }
//
//        Map<String,String> map = new HashMap<>();
//        map.put("phoneNo",number);
//        map.put("password",afterencrypt);
////        Observable<NormalBean> observable = HttpMethods.getInstance().getMyApi().getLogin(map);
////        HttpMethods.getInstance().toSubscribe(observable,subscriber);
//    }
//
//    public static void getOrderDetail(String orderNo ,String status,DisposableObserver<OrderDetailBean> subscriber){
//        Map<String,String> map = new HashMap<>();
//        map.put("orderNo",orderNo);
//        map.put("status",status);
//        Observable<OrderDetailBean> observable =  HttpMethods.getInstance().getMyApi().getOrderDetail(map);
//        HttpMethods.getInstance().toSubscribe(observable, subscriber);
//    }
}
